home *** CD-ROM | disk | FTP | other *** search
/ PC Play 129 / pc play 129.iso / Demo / man2 / man2.exe / data / scripts / oldunits_neweffects / oldunits_neweffects_tracksmoke.lua < prev    next >
Encoding:
Text File  |  2007-01-25  |  6.6 KB  |  326 lines

  1. desc = getEffectDescriptionP(ENET_EFFECT_PS_NEWTRACKSMOKE)
  2.  
  3. desc.ClassID = ENCLASS_SIMPLEPARTICLESYSTEM
  4. desc.EffectClassType = ENECT_PARTICLESYSTEM
  5. desc.ActivityType = ENACT_ACTIVE
  6.  
  7. desc.ScriptSet = ENSCRIPTSET_UNKNOWN
  8. desc.RelativePosition = ENLOCALPOS_NOTSPECIFIED
  9. local vzbzd1 = D3DXVECTOR3:new(0,0,0)
  10. desc.LocalPosition = vzbzd1
  11. vzbzd1:delete()
  12. desc.isAnimateTexture = false
  13. desc.RenderType = ENRENDERTYPE_GEOMETRY
  14.  
  15. Emitter = desc.PS.PSDescription
  16. Emitter.ParticleTypesNumber = 2
  17. local vzbzd2 = D3DXVECTOR3:new(0,0,0)
  18. Emitter.EmitterPosition = vzbzd2
  19. vzbzd2:delete()
  20. local vzbzd3 = D3DXVECTOR3:new(0,0,0)
  21. Emitter.EmitterDirection = vzbzd3
  22. vzbzd3:delete()
  23. Emitter.EmitterLifeTime = 1
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39. PT = Emitter.ParticleTypesParams[1]
  40. PT.IsEmitterLocked = false
  41. PT.DrawOrder = 1
  42. PT.Material = ENMAT_SIMPLEPARTICLE
  43.  
  44. PT.TextureName = "environment_effect_explosion_smoke12.dds"
  45.  
  46. PT.ParticlesPerSecond = 40;
  47. PT.InitialNumberOfParticles = 0.0;
  48. PT.BaseLifeTime = 1.0;
  49. PT.BaseLifeTimeVariance = 0.1;
  50. PT.BaseSpeed = 1.0;
  51. PT.BaseSpeedVariance = 0.2;
  52.  
  53. PT.TangentSpeed = 1.0;
  54. PT.TangentSpeedVariance = 0.1;
  55. local vzbzd4 = D3DXVECTOR3:new(1.0,0.0,0.0)
  56. PT.TangentDirection = vzbzd4
  57. vzbzd4:delete()
  58. PT.TangentAngleMin = 0.0;
  59. PT.TangentAngleMax = 6.28;
  60. PT.IsTangentDependOnBase = false;
  61.  
  62. PT.BaseAngle = 3.0;
  63. PT.BaseAngleVariance = 5.0;
  64. PT.BaseAngleSpeed = 0.5;
  65. PT.BaseAngleSpeedVariance = 0.3;
  66. PT.BaseAngleSpeedDirection = 0;
  67. local vzbzd5 = D3DXVECTOR3:new(0.0,1.0,0.0)
  68. PT.BaseDirection = vzbzd5
  69. vzbzd5:delete()
  70. local vzbzd6 = D3DXVECTOR3:new(0.0,0.0,0.0)
  71. PT.BaseDirectionVariance = vzbzd6
  72. vzbzd6:delete()
  73. local vzbzd7 = D3DXVECTOR3:new(0,2,0)
  74. PT.BasePosition = vzbzd7
  75. vzbzd7:delete()
  76. local vzbzd8 = D3DXVECTOR3:new(0,2,5)
  77. PT.BasePositionVariance = vzbzd8
  78. vzbzd8:delete()
  79. PT.BaseSize = 2.0;
  80. PT.BaseSizeVariance = 0.3;
  81.  
  82. -- color over time
  83. PT.ColorOverTimeR[1].TimePercent = 0.0;
  84. PT.ColorOverTimeR[1].Value = 0.9;
  85. PT.ColorOverTimeG[1].TimePercent = 0.0;
  86. PT.ColorOverTimeG[1].Value = 0.7;
  87. PT.ColorOverTimeB[1].TimePercent = 0.0;
  88. PT.ColorOverTimeB[1].Value = 0.6;
  89.  
  90. PT.ColorOverTimeR[2].TimePercent = 1.0;
  91. PT.ColorOverTimeR[2].Value = 0.6;
  92. PT.ColorOverTimeG[2].TimePercent = 1.0;
  93. PT.ColorOverTimeG[2].Value = 0.5;
  94. PT.ColorOverTimeB[2].TimePercent = 1.0;
  95. PT.ColorOverTimeB[2].Value = 0.4;
  96.  
  97. -- transparency over time
  98. PT.TransparencyOverTime[1].TimePercent = 0.0;
  99. PT.TransparencyOverTime[1].Value = 0.0;
  100.  
  101. PT.TransparencyOverTime[2].TimePercent = 0.1;
  102. PT.TransparencyOverTime[2].Value = 0.7;
  103.  
  104. PT.TransparencyOverTime[3].TimePercent = 1.0;
  105. PT.TransparencyOverTime[3].Value = 0.0;
  106.  
  107. -- size over time
  108. PT.SizeOverTime[1].TimePercent = 0.0;
  109. PT.SizeOverTime[1].Value = 5.0;
  110.  
  111. PT.SizeOverTime[2].TimePercent = 1.0;
  112. PT.SizeOverTime[2].Value = 10.0;
  113.  
  114. -- Speed over time
  115. PT.SpeedOverTime[1].TimePercent = 0.0;
  116. PT.SpeedOverTime[1].Value = 1.0;
  117.  
  118. PT.SpeedOverTime[2].TimePercent = 1.0;
  119. PT.SpeedOverTime[2].Value = 1.0;
  120.  
  121. -- Tangent Speed over time
  122. PT.TangentSpeedOverTime[1].TimePercent = 0.0;
  123. PT.TangentSpeedOverTime[1].Value = 8.0;
  124.  
  125. PT.TangentSpeedOverTime[2].TimePercent = 1.0;
  126. PT.TangentSpeedOverTime[2].Value = 8.0;
  127.  
  128.  
  129. -- GravityAcceleration over time
  130. PT.GravityAccelerationOverTime[1].TimePercent = 0.0;
  131. PT.GravityAccelerationOverTime[1].Value = 20.0;
  132.  
  133. PT.GravityAccelerationOverTime[2].TimePercent = 1.0;
  134. PT.GravityAccelerationOverTime[2].Value = 0.0;
  135.  
  136. -- AngleSpeed over time
  137. PT.AngleSpeedOverTime[1].TimePercent = 0.0;
  138. PT.AngleSpeedOverTime[1].Value = 0.5;
  139.  
  140. PT.AngleSpeedOverTime[2].TimePercent = 1.0;
  141. PT.AngleSpeedOverTime[2].Value = 0.1;
  142.  
  143.  
  144.  
  145.  
  146.  
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187. PT = Emitter.ParticleTypesParams[2]
  188. PT.IsEmitterLocked = false
  189. PT.DrawOrder = 2
  190. PT.Material = ENMAT_SIMPLEPARTICLE
  191.  
  192. PT.TextureName = "environment_effect_trackmud.dds"
  193.  
  194. PT.ParticlesPerSecond = 90;
  195. PT.InitialNumberOfParticles = 0.0;
  196. PT.BaseLifeTime = 0.4;
  197. PT.BaseLifeTimeVariance = 0.1;
  198. PT.BaseSpeed = 1.0;
  199. PT.BaseSpeedVariance = 0.2;
  200.  
  201. PT.TangentSpeed = 1.0;
  202. PT.TangentSpeedVariance = 0.1;
  203. local vzbzd9 = D3DXVECTOR3:new(1.0,0.0,0.0)
  204. PT.TangentDirection = vzbzd9
  205. vzbzd9:delete()
  206. PT.TangentAngleMin = 0.0;
  207. PT.TangentAngleMax = 6.28;
  208. PT.IsTangentDependOnBase = false;
  209.  
  210. PT.BaseAngle = 3.0;
  211. PT.BaseAngleVariance = 5.0;
  212. PT.BaseAngleSpeed = 0.5;
  213. PT.BaseAngleSpeedVariance = 0.3;
  214. PT.BaseAngleSpeedDirection = 0;
  215. local vzbzd10 = D3DXVECTOR3:new(0.0,1.0,0.0)
  216. PT.BaseDirection = vzbzd10
  217. vzbzd10:delete()
  218. local vzbzd11 = D3DXVECTOR3:new(0.0,0.0,0.0)
  219. PT.BaseDirectionVariance = vzbzd11
  220. vzbzd11:delete()
  221. local vzbzd12 = D3DXVECTOR3:new(0,0,0)
  222. PT.BasePosition = vzbzd12
  223. vzbzd12:delete()
  224. local vzbzd13 = D3DXVECTOR3:new(0,2,5)
  225. PT.BasePositionVariance = vzbzd13
  226. vzbzd13:delete()
  227. PT.BaseSize = 2.0;
  228. PT.BaseSizeVariance = 0.9;
  229.  
  230. -- color over time
  231. PT.ColorOverTimeR[1].TimePercent = 0.0;
  232. PT.ColorOverTimeR[1].Value = 0.3;
  233. PT.ColorOverTimeG[1].TimePercent = 0.0;
  234. PT.ColorOverTimeG[1].Value = 0.2;
  235. PT.ColorOverTimeB[1].TimePercent = 0.0;
  236. PT.ColorOverTimeB[1].Value = 0.2;
  237.  
  238. PT.ColorOverTimeR[2].TimePercent = 1.0;
  239. PT.ColorOverTimeR[2].Value = 0.3;
  240. PT.ColorOverTimeG[2].TimePercent = 1.0;
  241. PT.ColorOverTimeG[2].Value = 0.2;
  242. PT.ColorOverTimeB[2].TimePercent = 1.0;
  243. PT.ColorOverTimeB[2].Value = 0.2;
  244.  
  245. -- transparency over time
  246. PT.TransparencyOverTime[1].TimePercent = 0.0;
  247. PT.TransparencyOverTime[1].Value = 1.0;
  248.  
  249. PT.TransparencyOverTime[2].TimePercent = 0.7;
  250. PT.TransparencyOverTime[2].Value = 1.0;
  251.  
  252. PT.TransparencyOverTime[3].TimePercent = 1.0;
  253. PT.TransparencyOverTime[3].Value = 0.0;
  254.  
  255. -- size over time
  256. PT.SizeOverTime[1].TimePercent = 0.0;
  257. PT.SizeOverTime[1].Value = 1.0;
  258.  
  259. PT.SizeOverTime[2].TimePercent = 1.0;
  260. PT.SizeOverTime[2].Value = 2.5;
  261.  
  262. -- Speed over time
  263. PT.SpeedOverTime[1].TimePercent = 0.0;
  264. PT.SpeedOverTime[1].Value = 35.0;
  265.  
  266. PT.SpeedOverTime[2].TimePercent = 1.0;
  267. PT.SpeedOverTime[2].Value = 0.0;
  268.  
  269. -- Tangent Speed over time
  270. PT.TangentSpeedOverTime[1].TimePercent = 0.0;
  271. PT.TangentSpeedOverTime[1].Value = 8.0;
  272.  
  273. PT.TangentSpeedOverTime[2].TimePercent = 1.0;
  274. PT.TangentSpeedOverTime[2].Value = 0.0;
  275.  
  276.  
  277. -- GravityAcceleration over time
  278. PT.GravityAccelerationOverTime[1].TimePercent = 0.0;
  279. PT.GravityAccelerationOverTime[1].Value = -45.0;
  280.  
  281. PT.GravityAccelerationOverTime[2].TimePercent = 1.0;
  282. PT.GravityAccelerationOverTime[2].Value = -85.0;
  283.  
  284. -- AngleSpeed over time
  285. PT.AngleSpeedOverTime[1].TimePercent = 0.0;
  286. PT.AngleSpeedOverTime[1].Value = 0.0;
  287.  
  288. PT.AngleSpeedOverTime[2].TimePercent = 1.0;
  289. PT.AngleSpeedOverTime[2].Value = 0.0;
  290.  
  291.  
  292.  
  293.  
  294.  
  295.  
  296.  
  297.  
  298.  
  299.  
  300.  
  301.  
  302.  
  303.  
  304.  
  305.  
  306.  
  307.  
  308.  
  309.  
  310.  
  311.  
  312.  
  313.  
  314.  
  315.  
  316.  
  317.  
  318.  
  319.  
  320.  
  321.  
  322.  
  323.  
  324.  
  325.  
  326.